// Program: ata
// Description: Creates all ATA compatible block devices.
//

//
// Request.h -- Defines the data structures needed to store a request.
//

#ifndef REQUEST_H
#define REQUEST_H

#include <jimix/Globals.h>

class Request
{
public:
  Request(u32int address, u32int size, u8int *buffer, class AtaDevice *disk, int partition, bool isWrite) :
    address(address), size(size), buffer(buffer), disk(disk), partition(partition), isWrite(isWrite),
    completed(false)
  {
  }
  
  uint address;
  u8int *buffer;
  uint size;
  class AtaDevice *disk;
  int partition;
  bool isWrite;
  bool completed;
};

#endif
